<?php
/**
* This exception is thrown when a given file doesn't have one of the supported
* extensions
**/
class weebUIUnsupportedFileExtensionException extends Exception
{
    function __construct( $file, $supportedExts )
    {
        $this->file = $file;
        $this->supportedExts = $supportedExts;
        parent::__construct( "The given file ($file) doesn't have a supported extension (" . implode( ', ', $supportedExts ) . ")" );
    }
    var $file, $supportedExts;
}
?>